<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="file:///android_asset/lemon/css/main.css" />
<link rel="stylesheet" type="text/css" href="file:///android_asset/lemon/css/constants.css" />
<script type="text/javascript" src="file:///android_asset/lemon/js/jquery.min.js" />
<script type="text/javascript" src="file:///android_asset/lemon/js/jquery.corner.js" />
<script type="text/javascript" src="file:///android_asset/lemon/js/constants.js" />
<script type="text/javascript" src="file:///android_asset/lemon/js/main.js" />
<script type="text/javascript">
var server_address = window.lemon.js2client(4,null);
var user_id =  window.lemon.js2client(10,null);
//var user_img = "<img src='"+server_address + "/tom/res/img/head/"+user_id+".jpg' alt='头像' width='100' height='150' />";
//document.write(user_img);
</script>
</head>

<body>
<div id='head'>
<script type="text/javascript">
document.write("<h3 id='head' align='center'>"+nick_name+"</h3>");

var profess = new Array();
profess[0] = "lemon";
profess[1] = "club";
profess[2] = "dj";
profess[3] = "anmoshi";
profess[4] = "biandao";
profess[5] = "bianji";
profess[6] = "boshi";
profess[7] = "caiwu";
profess[8] = "celuewenan";
profess[9] = "cezhanren";
profess[10] = "chahuashi";
profess[11] = "chanpinsheji";
profess[12] = "chemo";
profess[13] = "chenxuyuan";
profess[14] = "chongwuyishen";
profess[15] = "chubanren";
profess[16] = "cushi";
profess[17] = "chuanyizongjiang";
profess[18] = "ciqubianji";
profess[19] = "ciqinshi";
profess[20] = "danshencaoren";
profess[21] = "dianzhu";
profess[22] = "diaoshu";
profess[23] = "fanyi";
profess[24] = "feixingyuan";
profess[25] = "fuzhuangsheji";
profess[26] = "fuzhuangzaoxingshi";
profess[27] = "geshou";
profess[28] = "gongyesheji";
profess[29] = "gongguan";
profess[30] = "gongwuyuan";
profess[31] = "guanlixiangguan";
profess[32] = "guanggaokehufuwu";
profess[33] = "guanggaosheying";
profess[34] = "xingweiyishu";
profess[35] = "hudongsheji";
profess[36] = "hushi";
profess[37] = "huazhuangshi";
profess[38] = "huihua";
profess[39] = "jizhe";
profess[40] = "jiangzusheji";
profess[41] = "jiangshenjiaolian";
profess[42] = "jiaolian";
profess[43] = "jiaoshi";
profess[44] = "jiemiansheji";
profess[45] = "jingjiren";
profess[46] = "keyan";
profess[47] = "kongjiangsheji";
profess[48] = "kongjie";
profess[49] = "yuedui";
profess[50] = "yueshou";
profess[51] = "luying";
profess[52] = "lvshifalvguwen";
profess[53] = "meitiguanggaoshichang";
profess[54] = "meijiashi";
profess[55] = "meirongmeitishi";
profess[56] = "meishubianji";
profess[57] = "meishuzhidao";
profess[58] = "moshushi";
profess[59] = "pingmianmoter";
profess[60] = "pingmiansheji";
profess[61] = "quyizaiji";
profess[62] = "renliziyuan";
profess[63] = "saiche";
profess[64] = "sanweisheji";
profess[65] = "shizhuangmoter";
profess[66] = "shizhuangsheying";
profess[67] = "shijuesheji";
profess[68] = "shijueyishu";
profess[69] = "shipingsheji";
profess[70] = "shouchang";
profess[71] = "shufa";
profess[72] = "touzi";
profess[73] = "wangluoguangli";
profess[74] = "wushu";
profess[75] = "wudao";
profess[76] = "xiju";
profess[77] = "xijudaoyan";
profess[78] = "xiaoshou";
profess[79] = "xiezhuo";
profess[80] = "xinlizixushi";
profess[81] = "xuesheng";
profess[82] = "yanyuan";
profess[83] = "yishen";
profess[84] = "yinyuehouqi";
profess[85] = "yinyuexiangguan";
profess[86] = "yinyuezizhaoren";
profess[87] = "youxisheji";
profess[88] = "yundongyuan";
profess[89] = "zaoxingshi";
profess[90] = "zhainan";
profess[91] = "zhainv";
profess[92] = "zhubian";
profess[93] = "zhuchiren";

</script>
</div>

<div>
<script type="text/javascript">
var stuff_img = window.lemon.js2client(9,null);
if(stuff_img == ""){
	stuff_img = window.lemon.httpGet(server_address+"/tom/servlet/C2S4saveandreturnImage?_id="+user_id);
}
var img = "<img src='"+stuff_img+"' width='110' height='150' class='stuff' style='float:left' />";
document.write(img);
</script>

<div id='content'>
<script type="text/javascript">
var data1 = window.lemon.httpGet(server_address+"/tom/servlet/C2S3returnStory?user_id="+user_id+"&my_story=my_story");
document.write("<p id='my_story' >"+data1+"</p>");
</script>
</div>

<div class="clear"></div>
</div>
<br>
<img src='file:///android_asset/lemon/res/camera1.png' width='64' height='64' type='button' id='camera'></img>
<img src='file:///android_asset/lemon/res/photo1.png' width='64' height='64' type='button' id='photo'></img>
<img src='file:///android_asset/lemon/res/edit1.png' width='64' height='64' id='edit' style='padding-left:2em'></img>
<br>
<script type="text/javascript">
document.write("<div class='pro'>");
var pro =  window.lemon.httpGet(server_address+"/tom/servlet/C2S10professional?user_id="+user_id+"&cmd=read");
var pro1 = new String(pro);
if(pro1 == "nobody"){
	document.write("<img src='file:///android_asset/lemon/res/professional.png' width='64' height='64' type='button' id='professional'></img>");
}else{
	var img_path= "<img alt='"+pro1+"' src='file:///android_asset/lemon/res/"+pro1+".jpg' width='69' height='72' id='"+pro1+"' />";
	//document.write("$(this).corner");
	document.write("<div id='pro_div'>");
	document.write(img_path);
	document.write("</div>");
	$(document).ready(function(){
		$("#pro_div").click(function(){
			window.lemon.js2client(2,"professional.html?user_id="+user_id);
		});
	});
}

document.write("</div>");
</script>


<script type="text/javascript">
var img_path= "<img alt='"+profess[i]+"' src='file:///android_asset/lemon/res/"+profess[i]+".jpg' width='69' height='72' id='"+profess[i]+"' />";
document.write(img_path);
</script>


<script type="text/javascript">
document.write("<hr width='220' align='left' size=1 color=#9d9d9d style='FILTER: alpha(opacity=80,finishopacity=30);left:0px;'>");
document.write("<div id='reply'>");
document.write("<h1>留言</h1>");
var data = window.lemon.httpGet(server_address+"/tom/servlet/C2S5reply?cmd=2&user_id="+user_id);
var str1 = new String(data);
var reply_index = new Array();
reply_index = str1.split(",");
var data = window.lemon.httpGet(server_address+"/tom/servlet/C2S5reply?time=&user_id="+user_id);
var str1 = new String(data);
var reply_time = new Array();
reply_time = str1.split(",");
for(var k = 0; k < reply_index.length - 1; k++){
	reply_time[k] = reply_time[k].replace(/(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+).(\d+)/,"$2月$3日 $4点$5分");
	var reply_every = new String(reply_index[k]);
	var reply_id =  reply_every.replace(/(\d+):>(.*)/,"$1");
	var reply_content = reply_every.replace(/(\d+):>(.*)/,"$2");
	reply_every = "<div id='"+reply_id+"' class='reply'><img style='float:left' src='"+server_address + "/tom/res/img/"+reply_id+".jpg' width='80' height='120' id='"+reply_id+"' /><p id='content'>"+reply_content+"<br><br><small>"+reply_time[k]+"</small></p></div>";
	
	document.write(reply_every);
}
document.write("</div>");
//document.write("<hr width='220' align='left' size=1 color=#9d9d9d style='FILTER: alpha(opacity=80,finishopacity=30);left:0px;'>");
document.write("<h3>Fans</h3>");
var data = window.lemon.httpGet(server_address+"/tom/servlet/C2S2returnFriends?cmd=1&user_id="+user_id+"&_id="+user_id+"&goto=goto");
var str1 = new String(data);
var str2 = str1.slice(9,str1.length);
var str3 = str2.substring(0,str2.indexOf("}"));
friends_index = str3.split(",");
document.write("<div id='mark'>");
var j = "";
for(var i = friends_index.length -1,j = 0; i >= 0;j++, i--){
	if(j > 5){
		break;
	}
	var img_contact = "<img src='"+server_address + "/tom/res/img/"+friends_index[i]+".jpg' width='80' height='120' id='"+friends_index[i]+"' />";
	document.write(img_contact);
}
document.write("<p id='last'></p>");
$(document).ready(function(){
	$("#more").click(function(){
		if(j == friends_index.length ){
			return;
		}
		for(i = friends_index.length -1 -j ; i >= 0;i--){
			if( friends_index.length -1- i < j * 2){
				$("p#last").append( "<img src='"+server_address + "/tom/res/img/"+friends_index[i]+".jpg' width='80' height='120' id='"+friends_index[i]+"' />");
			}else{
				break;
			}
		}
		j = friends_index.length  -1- i;
		$(document).ready(function(){
			$("div#mark img").click(function(){
				window.lemon.js2client(2,"friends_detail.html?_id="+this.id+"&user_id="+user_id);
			});
		});
	});
});
document.write("</div>");
if(j != friends_index.length ){
	document.write("<img type='button' width='60' height='60' id='more' src='file:///android_asset/lemon/res/more.png'></button>");
}
</script>

</body>

</html>